package com.tistory.common.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Repository;

import com.tistory.admin.adminmgr.auth.model.LoginUserInfo;
import com.tistory.common.vo.CommonCodeRes;
import com.tistory.common.vo.CommonReq;
import com.tistory.credit.vo.CreditRes;
import com.tistory.login.vo.MemberRes;

@Repository("CommonDaoImpl")
public class CommonDaoImpl implements CommonDao {

	@Autowired
	SqlMapClientTemplate sqlMapClientTemplate;
	
	public void setSqlMapClientTemplate(SqlMapClientTemplate sqlMapClientTemplate) {
		this.sqlMapClientTemplate = sqlMapClientTemplate;
	}

	@Override
	public List<CommonCodeRes> getCommonCodeList(String grpCdId) throws SQLException {
		List<CommonCodeRes> commonCodeList = sqlMapClientTemplate.queryForList("CommonSql.getCommonCodeList",  grpCdId);
		return commonCodeList;
	}

	
	
}
